<?php
namespace App\Http\Controllers;

use App\Project;
use Illuminate\Support\Facades\Request;

class ApplyAPIController extends Controller {

    public function updateProjectAttrs()
    {
        $projectId = Request::get('project_id');
        $attrs = Request::get('attrs');
        $project = Project::find($projectId);
        $project->update($attrs);
        return $this->json(['ok' => true]);
    }


}